package Java.com;

import java.util.*;
import java.text.*;

public class Test22 {
	public static void main(String[] args) {
		try {
			long start = System.currentTimeMillis();
			System.out.println(new Date());

			Thread.sleep(5 * 60 * 10);
			System.out.println(new Date());

			long end = System.currentTimeMillis();
			long diff = end - start;
			System.out.println("時間差為：" + diff);
		} catch (Exception e) {
			System.out.println("Got an exception!");
		}
	}
}
